// import request from '@/utils/request'

/**
 * @param {string} path
 * @returns {Boolean}
 */
export function isExternal(path) {
  return /^(https?:|mailto:|tel:)/.test(path)
}

/**
 * @param {string} str
 * @returns {Boolean}
 */
/* export function validUsername(str) {
  return request({
    url: '/user/findUserByUsername',
    method: 'get',
    params: { username: str }
  })
} */
